package com.markerhub.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author jsx on 2023/2/13
 * 用于存放用户购买信息
 **/
@Data
@TableName("goods_info")
public class GoodsInfo {

    //主键
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;

    // 商品id
    @TableField(value = "goods_id")
    private String goodsId;

    // 表示 购买 还是 加入购物车 , 0表示 购物车 1 表示购买
    @TableField(value = "status")
    private String status;

    // 表示用户
    @TableField(value = "user_id")
    private String userId;

    // 购买数量
    @TableField(value = "num")
    private Integer num;

    //购买时间
    @TableField(value = "create_time")
    private String createTime;

    //删除标记 0标记没有删除,1标记删除
    @TableField(value = "delete_flag")
    private String deleteFlag;

    //地址
    @TableField(value = "address")
    private String address;

    //物流状态
    @TableField(value = "logistics_status")
    private String logisticsStatus;

}
